﻿@{
    ViewBag.Title = "Index";
    if(TempData["alertMessage"] != null) {
        <script type="text/javascript">
            alert("@TempData["alertMessage"]");
        </script>    
    }
}

<h1>Welcome to Home</h1>
@using(@Html.BeginForm("Index","Home",FormMethod.Post)){
    @Html.TextBox("UserName")<br />
    @Html.Password("Password")<br />
    <input type="submit" value="Login" class="button" />
}